package com.yswy.common.enums;



import com.yswy.common.enums.base.EnumHelper;
import com.yswy.common.enums.base.TypeEnum;
import com.yswy.common.enums.base.TypeEnumDto;

import java.util.List;
import java.util.Map;

public enum AlipayMethodEnums implements TypeEnum {
	APP(1, "QUICK_MSECURITY_PAY"),//app
	WAP(2, "QUICK_WAP_WAY"),//手机网站
    CYCLE(3, "CYCLE_PAY_AUTH"),//周期扣款
    GENERAL(4, "GENERAL_WITHHOLDING");//商家扣款
	AlipayMethodEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
    
    public static List<TypeEnumDto> kv = EnumHelper.getTypeEnum(values());

    public static final int QUICK_MSECURITY_PAY = 1;
    public static final int QUICK_WAP_WAY = 2;
    public static final int CYCLE_PAY_AUTH = 3;
    public static final int GENERAL_WITHHOLDING = 4;
}
